<!DOCTYPE HTML>
<html lang="en">
<head>
  <meta name="copyright" content=
  "Copyright (c) IBM Corporation and others 2008, 2011. This page is made available under license. For full details see the LEGAL in the documentation book that contains this page.">
  <meta charset="utf-8">
  <title>Templates View</title>
  <link rel="stylesheet" href="../book.css" type="text/css">
</head>
<body>
  <h1>Templates View</h1>
  <p>A template is a section of code that is frequently used. You want to insert it with a few keystrokes.</p>
  <p>The <i>Templates</i> view allows you to create your own, to edit, or add an existing template for the currently active editor.</p>
  <p>To add the <i>Templates</i> view to the current perspective, click <a class="command-link" href=
  'javascript:executeCommand(&quot;org.eclipse.ui.views.showView(org.eclipse.ui.views.showView.viewId=org.eclipse.ui.texteditor.TemplatesView)&quot;)'>
  <img src="PLUGINS_ROOT/org.eclipse.help/command_link.svg" alt="command link"> <b>Window &gt; Show View &gt; Other...
  &gt; General &gt; Templates</b></a>.</p>
  <p>Note that the content of this view is editor-specific. So, templates are not available for all editors.</p>
  <h2>Use</h2>
  <p>In the source code editors, templates can be added using content assist (Ctrl+Space) or by selection from the <i>Templates</i> view.</p>
  <p>To create, edit, delete, import, and export templates, you can also use the <i>Templates</i> preference page.</p>
  <h3>Name</h3>
  <p>This column lists the available templates ascending in accordance to its name.</p>
  <h3>Description</h3>  
  <p>This column provides further information about the usage and content of the available templates.</p>
  <h3>Preview</h3>  
  <p>The preview displays the formatted source code of the template. This enables you to check if the template meets your requirements before adding it.</p>
  <h2>Toolbar</h2>  
  <p>The toolbar in the <i>Templates</i> view contains the following functionalities:</p>
  <h3>Insert Into Editor</h3>
  <p>Adds the template to the current cursor position in the active editor</p>
  <h3>Create a New Template</h3>
  <p>Opens the <i>New Template</i> dialog to determine a new template</p>
  <h3>Edit the Template</h3>
  <p>Opens the <i>Edit Template</i> dialog to rework an existing template</p>
  <h3>Remove the Template (Delete)</h3>
  <p>Deletes a template</p>
  <h3>Filter Templates by Current Caret Position</h3>
  <p>Hides or displays the templates that can be used or not at the current cursor position</p>
  <h3>Collapse All</h3>
  <p>Collapses the structure of available templates</p>
  <h3>Preferences...</h3>
  <p>Opens the <i>Templates</i> preference page</p>
</body>
</html>
